//package com.zzx.security;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.web.servlet.HandlerExceptionResolver;
//import org.springframework.web.servlet.ModelAndView;
//
//import com.alibaba.fastjson.support.spring.FastJsonJsonView;
//
//public class BaseHandlerExceptionResolver implements HandlerExceptionResolver {
//	
//	
//	
//	public ModelAndView resolveException(HttpServletRequest request, HttpServletResponse response, Object handler,
//			Exception ex) {
//		ex.printStackTrace();
//		FastJsonJsonView view = new FastJsonJsonView();
//		Map<String, Object> map = new HashMap<String, Object>();
//		map.put("status", 9999);
//		map.put("type", 0);
//		map.put("message", ex.getMessage());
//		view.setAttributesMap(map);
//		ModelAndView mv = new ModelAndView();
//		mv.setView(view);
//		return mv;
//	}
//}
